<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    body > div {
      display: flex;
      width: 100px;
      height: 100px;
      border-radius: 5px;
      border: 2px solid red;
      box-sizing: border-box;
    }
    body {
      margin: 10px;
      display: flex;
      justify-content: space-around;
    }
    .dot {
      width: 25px;
      height: 25px;
      background-color: black;
      border-radius: 50%;
      margin: 2px;
    }
    .second-face {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
    }
    .third-face {
      display: flex;
    }
    .third-face .dot:nth-of-type(2) {
      align-self: center;
    }
    .third-face .dot:nth-of-type(3) {
      align-self: flex-end;
    }
    .eighth-face {
      display: flex;
      justify-content: space-between;
    }
    .eighth-face01 {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .ninth-face {
      display: flex;
      justify-content: space-between;
    }
    .ninth-face01 {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
  </style>

  <body>
    <div class="second-face">
      <span class="dot"></span>
      <span class="dot"></span>
    </div>

    <div class="third-face">
      <span class="dot"></span>
      <span class="dot"></span>
      <span class="dot"></span>
    </div>

    <div class="eighth-face">
      <div class="eighth-face01">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
      </div>

      <div class="eighth-face01">
        <div class="dot"></div>
        <div class="dot"></div>
      </div>

      <div class="eighth-face01">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
      </div>
    </div>

    <div class="ninth-face">
      <div class="ninth-face01">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
      </div>
      <div class="ninth-face01">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
      </div>
      <div class="ninth-face01">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
      </div>
    </div>
  </body>
</html>
